<template>
  <component :is="theComponent"></component>
</template>

<script>
import { defineAsyncComponent } from 'vue';
import { useRouter } from 'vue-router';
export default {
  name: 'universalOtherItems',
  setup(){
    const router = useRouter();
    const componentName = router.currentRoute.value.query.page;
    const theComponent =  defineAsyncComponent(() =>import(`./components/${componentName}.vue`));

    return {
      theComponent,
    }
  }
}
</script>